package com.ice.work.moment.ticket.service;

import com.honeybee.cloud.framework.base.exception.business.BaseBizException;
import com.honeybee.cloud.framework.common.page.Page;
import com.ice.work.moment.facade.ticket.dto.CookieDTO;
import com.ice.work.moment.facade.ticket.dto.PassengerDTO;
import com.ice.work.moment.facade.ticket.param.LoginParam;
import com.ice.work.moment.facade.ticket.param.QueryPassengerParam;

/**
 * @Description user
 * @Author DELL
 * @Create 2019-05-16
 * @Since 1.0.0
 */
public interface IUserService {

    /**
     * 登录
     *
     * @param loginParam
     * @param qrLogin
     * @return
     * @throws BaseBizException
     */
    String login(LoginParam loginParam, boolean qrLogin) throws BaseBizException;


    /**
     * 登出
     *
     * @param cookieDTO
     * @throws BaseBizException
     */
    void out( CookieDTO cookieDTO) throws BaseBizException;

    /**
     * 查询登录用户的常用联系人
     *
     * @param passengerParam
     * @param cookieDTO
     * @return
     * @throws BaseBizException
     */
    Page<PassengerDTO> queryPassengers(QueryPassengerParam passengerParam,CookieDTO cookieDTO) throws BaseBizException;
}
